package com.team11.server.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author pjc
 * @since 2021-06-15
 */

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("s_information")
@ApiModel(value="SInformation对象", description="")
public class SInformation implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "学生id")
    @TableId(value = "sid", type = IdType.AUTO)
    private Integer sid;

    @ApiModelProperty(value = "学号")
    @TableField("s_id")
    private String sNumber;

    @ApiModelProperty(value = "学生姓名")
    @TableField("s_name")
    private String sName;

    @ApiModelProperty(value = "性别")
    @TableField("s_gender")
    private String sGender;

    @ApiModelProperty(value = "邮箱")
    @TableField("s_email")
    private String sEmail;

    @ApiModelProperty(value = "手机号")
    @TableField("s_phone")
    private String sPhone;

    @ApiModelProperty(value = "身份证号")
    @TableField("s_id_number")
    private String sIdNumber;

    @ApiModelProperty(value = "项目角色")
    @TableField("s_project_role")
    private String sProjectRole;

    @ApiModelProperty(value = "学生头像")
    @TableField("s_image")
    private String sImage;

    @ApiModelProperty(value = "班级id")
    @TableField("c_id")
    private Integer cId;
    @ApiModelProperty(value = "小组id")
    @TableField("p_id")
    private Integer pId;

    @ApiModelProperty(value = "小组")
    @TableField(exist = false)
    private PInformation pInformation;

    @ApiModelProperty(value = "班级")
    @TableField(exist = false)
    private CInformation cInformation;

    @ApiModelProperty(value = "老师")
    @TableField(exist = false)
    private TInformation tInformation;

    @ApiModelProperty(value = "上课-学生")
    @TableField(exist = false)
    private KcSInformation kcSInformation;

    @ApiModelProperty(value = "状态（1为有效，0为无效）")
    @TableField("s_state")
    private int sState;

}
